import { ClassesEntity } from "@app/prisma/classes.entity/classes.entity";
import { TeacherEntity } from "@app/prisma/teacher.entity/teacher.entity";
import { Field, Int, ObjectType } from "@nestjs/graphql";

@ObjectType()
export class TeacherTotalItem {
    @Field(() => Int)
    teacherId: number

    @Field(() => Int)
    count: number
}

@ObjectType()
export class GetTaskTeachersDto {
    @Field(() => TeacherEntity)
    teacher: TeacherEntity
    @Field(() => Int)
    total: number

    @Field(() => Int)
    finished: number
}
@ObjectType()
export class GetTaskClassesDto {
    @Field(() => ClassesEntity)
    classes: ClassesEntity
    
    @Field(() => Int)
    total: number

    @Field(() => Int)
    finished: number
}